package Java语言.运行时;

import java.io.IOException;

public class RuntimeStudy {
    public static void main(String[] args) throws IOException {
        Runtime r=Runtime.getRuntime();
        //r.exec("echo yes");
Integer i=3;
        System.out.println(r.availableProcessors());
        System.out.println(r.maxMemory());
        System.out.println(r.freeMemory());
        System.out.println(r.totalMemory());
        r.gc();

        System.out.println(i);
        System.out.println("yes");
    }
}
